<script>
	//app端初始化，打包app时需要升级客户端可启用
	// import initApp from '@/api/init.js'

	export default {
		//全局变量
		globalData: {
			richcontent: "", //富文本临时传递存储
			appVersion: "3.0.3", //当前app版本号
			top: ''
		},
		onLaunch() {
			// console.log('unielepy已启动')
			// console.log('App Launch')
			//app端初始化，打包app时需要升级客户端可启用
			// initApp()
			// uni.setStorageSync('token', '123')
			// uni.getSystemInfo({
			// 	success: (e) => {
			// 		let tops = e.statusBarHeight;
			// 		getApp().globalData.top = tops
			// 	}
			// })
			uni.getSystemInfo({
				success: res => {
					// console.log(res.windowHeight);
					// console.log(res.safeArea);
					this.$tn.vuex('vuex_statusBarHeight', res.statusBarHeight);
					this.$tn.vuex('vuex_windowHeight', res.windowHeight);
					this.$tn.vuex('vuex_safeAreaHeight', res.safeArea.height);
				}
			})

			uni.setKeepScreenOn({
				keepScreenOn: true
			});
		},
		onShow() {
			// console.log('App Show')
		},
		onHide() {
			// console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	// #ifndef APP-PLUS-NVUE
	@import '@/uni_modules/uni-scss/index.scss';
	@import "@/uni_modules/uview-ui/index.scss";
	@import url("./static/css/common.scss");

	page {
		background: url('@/static/img/bg.png') no-repeat;
		background-size: cover;
		overflow-x: hidden;
	}

	@font-face {
		/* 狮尾圆体 */
		font-family: 'YuanTi';
		src: url('https://aiyuqun.oss-cn-beijing.aliyuncs.com/files/font/shiweiyuanti.ttf');
	}

	@font-face {
		font-family: 'ShouZhuo';
		src: url('https://aiyuqun.oss-cn-beijing.aliyuncs.com/files/font/hanchanshouzhuoti.ttf');
	}
	

	// 去掉页面滚动条
	::-webkit-scrollbar {
		display: none !important;
		width: 0 !important;
		height: 0 !important;
		-webkit-appearance: none;
		background: transparent;
	}

	// #endif
</style>